<?php 
use yii\helpers\Html;
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>会议列表</title>
    <link rel="stylesheet" href="http://cdn.bootcss.com/weui/1.1.2/style/weui.min.css"/>
  </head>
  <body>
<div class="page__bd" style="height: 100%;">
	        <div class="weui-tab">
	            <div class="weui-tab__panel"></div>
	            <div class="weui-tabbar">
	                <a href="#" class="weui-tabbar__item weui-bar__item_on">
	                    <span style="display: inline-block;position: relative;">
	                        <img src="./img/icon_tabbar.png" alt="" class="weui-tabbar__icon">
	                        <span class="weui-badge" style="position: absolute;top: -2px;right: -13px;">
	                        <?php  echo count($meetings); ?></span>
	                    </span>
	                    <p class="weui-tabbar__label">最近的会议</p>
	                </a>
	                <a href="#" class="weui-tabbar__item weui-bar__item_on">
	                    <span style="display: inline-block;position: relative;">
	                        <img src="./img/icon_tabbar.png" alt="" class="weui-tabbar__icon">
	                        <span class="weui-badge" style="position: absolute;top: -2px;right: -13px;">
	                        <?php
	                          $num=0;
	                          foreach ($meetings as $meeting) {
	                          	if($meeting['meeting_time']>=date('Y-m-d H:i:s'))++$num;
	                          }
	                          echo $num;
	                        ?>
	                        </span>
	                    </span>
	                    <p class="weui-tabbar__label">近期要参加的会议</p>
	                </a>
	            </div>
	        </div>
	    </div>
	</div>
<div class="weui-panel">
  	<div class="weui-panel__hd">您的会议列表</div>
  	<div class="weui-panel__bd">
  	<?php foreach ($meetings as $meeting):?>
	    <div class="weui-cells">
		    <a href="<?php echo \yii\helpers\Url::toRoute(['confirm','id'=>$meeting['id']]); ?>" class="weui-cell weui-cell_access">
		        <div class="weui-cell__bd">
		            <p><?php echo $meeting['title']; ?></p>
		        </div>
		        <div class="weui-cell__ft"><?php echo $meeting['meeting_time']; ?></div>
		    </a>
		</div>
	<?php endforeach; ?>
	</div>
</div>
  </body>
</html>